<template>
  <div class="bg-white w-full pages box-border p-4">
    <lgFormdesign
        @copy="copy"
        :propList="[{value:'prop_id_1',label:'标题',disabled:false,readonly:true,required:true,searchInitParam:'哈哈哈'}]"
    >
    </lgFormdesign>
  </div>
</template>

<script setup lang="ts">
import { lgFormdesign } from "loong3-dv"

import { getCurrentInstance } from 'vue';
import {message} from "ant-design-vue";
const { proxy }:any = getCurrentInstance()
const copy = (formOptions:any,configure:any)=>{
  const text = JSON.stringify({
    configure,formOptions
  })
  proxy.$copyText(text).then(()=>{
    message.success('复制成功');
  })
}
</script>

<style scoped lang="less">
.pages{
  height: 813px;
  background-color: #ffffff !important;
  margin-bottom: -20px;
}
</style>
